﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace EzDesk.Core.Model
{
    [DataContract]
    public class AppFunction : IModel
    {
        [DataMember]
        public Guid Id { get; set; }

        [DataMember]
        public string AppName { get; set; }

        /// <summary>
        /// 一级分类名称
        /// </summary>
        [DataMember]
        public FunctionType Type { get; set; }

        /// <summary>
        /// 二级分类名称
        /// </summary>
        [DataMember]
        public FunctionCategory Category { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        [DataMember]
        public string Title { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [DataMember]
        public string Description { get; set; }

        /// <summary>
        /// 所使用图标的标识Url地址
        /// </summary>
        [DataMember]
        public string IconUrl { get; set; }

        /// <summary>
        /// 用于数据库存储的图表名称
        /// </summary>
        public string IconName { get; set; }

        /// <summary>
        /// 目标URL
        /// </summary>
        [DataMember]
        public string TargetUrl { get; set; }

        /// <summary>
        /// 用于数据库存储的目标Url
        /// </summary>
        public string FuncUrl { get; set; }

        /// <summary>
        /// 功能的优先级，供排序用
        /// </summary>
        [DataMember]
        public int Privilege { get; set; }

        /// <summary>
        /// 需要的权限
        /// </summary>
        public string PermissionNeed { get; set; }
    }
}